package com.jasonzhou.onetomanycontrol.util

fun Int.toTime() = if (this > 9) this.toString() else "0${this}"
fun Int.isRange(min: Int, max: Int) = this in min..max
fun Byte.toIntE() = this.toInt() and 0xff
fun Byte.toHex() = String.format("%02X", this)
